package com.zerdoor.util.yz;

/**
 * Created by xiaobo on 2014/9/3.
 */

import com.octo.captcha.service.captchastore.FastHashMapCaptchaStore;
import com.octo.captcha.service.image.DefaultManageableImageCaptchaService;
import com.octo.captcha.service.image.ImageCaptchaService;
import com.zerdoor.util.yz.servlet.GMailEngine;

/**
 * 按照官方的做法： 一定为单例
 *
 * @author Administrator
 */
public class CaptchaServiceSingleton {
    private static ImageCaptchaService instance = new DefaultManageableImageCaptchaService(
            new FastHashMapCaptchaStore(), new GMailEngine(), 180,
            100000, 75000);

    //	private static ImageCaptchaService instance=new DefaultManageableImageCaptchaService();
    public static ImageCaptchaService getInstance() {
        return instance;
    }
}
